import multiprocessing as mp
import node
import time
import argparse


start_port, oracle_count = 3001, 3

for i in range(oracle_count):
    port = start_port + i
    if i == 0:
        mp.Process(target=node.create_bootstrap_node, args=(port-start_port, )).start()
        time.sleep(3)
    else:
        mp.Process(
            target=node.connect_to_bootstrap_node,
            args=([port, "localost", start_port], ),
        ).start()
        time.sleep(3)
